package java19_5_9.com.huweilong.io.read_file;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class ReadFile2 {
    public static void main(String[] args) throws IOException {
        try (InputStream is = new FileInputStream("hello.txt")) {
            while (true) {
                int b = is.read();
                if (b == -1) {
                    break;
                }
                System.out.println(b);
            }
        }
    }
}
